home *** CD-ROM | disk | FTP | other *** search
/ 220 Jogos / 220 jogos.iso / classicos / resta11 / STimer.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-04-17  |  796 b   |  45 lines

  1. // STimer.h: Schnittstelle fⁿr die Klasse STimer.
  2. //
  3. // Copyright by AndrΘ Stein
  4. // E-Mail: stonemaster@steinsoft.net, andre_stein@web.de
  5. // http://www.steinsoft.net
  6. //////////////////////////////////////////////////////////////////////
  7. #ifndef STIMER_H
  8. #define STIMER_H
  9.  
  10. #if _MSC_VER > 1000
  11. #pragma once
  12. #endif 
  13.  
  14. class STimer  
  15. {
  16. public:
  17.     //////////////////
  18.     // Konstruktoren / Destruktoren
  19.     //////////////////
  20.     
  21.     STimer();
  22.     virtual ~STimer();
  23.     
  24.     /////////////////
  25.     // Funktionen
  26.     /////////////////
  27.  
  28.     float getTime();
  29.     void create();
  30.     inline __int64 getFrequency();
  31.  
  32. protected:
  33.     __int64 frequency;
  34.     __int64 timerStart;
  35.     __int64 timerElapsed;
  36.     float resolution;
  37.     bool performanceTimer;
  38. };
  39.  
  40. __int64 STimer::getFrequency()
  41. {
  42.     return frequency;
  43. }
  44.  
  45. #endif